<?php 
namespace app\api\validate;
use think\Validate;
class Address extends Validate{
	protected $rule=[
		'name'=>'require',
		'tel'=>'require|/^1[3456789]{1}\d{9}$/',
		'province'=>'require',
		'city'=>'require',
		'area'=>'require',
		'address'=>'require',
	];

	protected $message = [
        'name'=>'请填写姓名',
		'tel'=>'请填写正确的手机号',
		'province'=>'请选择省',
		'city'=>'请选择市',
		'area'=>'请选择县/区',
		'address'=>'请填写具体地址',
    ];

}